﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyDelegateDemo.MyObserver
{
    /// <summary>
    /// 狗
    /// </summary>
    public class Dog : IObserver
    {

        //public Dog(int i)
        //{

        //}

        public void Action()
        {
            Wang();
        }
        public void Wang()
        {
            Console.WriteLine("{0} Wang", GetType().Name);
        }
    }
}
